package jass.iss.edu.Screen;


import jass.iss.edu.Controller.*;
import java.awt.*;
import javax.swing.*;


public class JobAdvertisementListScreen extends JFrame{
	
	/*Local attributes=================================================================================================*/
	//required as it references serializable objects for binary saving
	private static final long serialVersionUID = 1L;
	
	private	GridControl gridFrm;
	private JobAdvertisementController controller;
	
	

	/*Constructors=======================================================================================================*/
	public JobAdvertisementListScreen(JobAdvertisementController controller) {
		//Get datasource to bind to common grid control
		this.controller = controller;
		initialize();
	
	}
	
	private void initialize(){
		//Define the column to be binded to common grid control		
		gridFrm= new GridControl();		
		//assign listener to grid control
		gridFrm.getGrid().addMouseListener(this.controller);
		
		//set the properites of search customer frame
		setSize(600,500);
		setTitle("View Advertisement List");
		setLayout(new BorderLayout());		
		this.getContentPane().add(gridFrm,BorderLayout.NORTH);		
		
	}
	
	public JTable getJTable(){
		return gridFrm.getGrid();
	
	}
	
	public JTable refreshJTable(){
		return gridFrm.getGrid();
	
	}
	

	  

}
